package com.tangyuan.feignapis.user;

import com.tangyuan.common.result.Result;
import com.tangyuan.model.UserLike;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "service-user",contextId = "userLike")
public interface IUserLikeFeignClient {

    @GetMapping("/feignApi/user/selectUserLikeListByIds")
    List<UserLike> selectUserLikeListByIds(@RequestParam(value = "ids") List<Long> ids);

    @GetMapping("/feignApi/user/selectUserById")
    UserLike selectUserLikeById(@RequestParam Long id);

    @GetMapping("/feignApi/user/getLikeType")
    int getLikeType(@RequestParam Long id);

    @GetMapping("/feignApi/user/getUserLikeListByAsc")
    List<UserLike> getUserLikeListByAsc();

    @GetMapping("/feignApi/user/getRegisterById/{id}")
    Result<String> getRegisterById(@PathVariable("id") int id);

    @GetMapping("/feignApi/user/getRegis")
    Result getRegis(@RequestParam Long id);
}
